package com.jingdianjichi.auth.domain.service;


import com.jingdianjichi.auth.domain.entity.AuthPermissionBO;
import com.jingdianjichi.auth.domain.entity.AuthRoleBO;

import java.util.List;

/**
 * ClassName:SubjectCategoryDomainService
 * Package:IntelliJ IDEA
 * Description: 用户service
 *
 * @Author xiaoming
 * @Create 2025/2/16 14:14
 * @Version 1.0
 */
public interface AuthPermissionDomainService {

    /**
     * 新增权限
     *
     * @param authPermissionBO
     * @return
     */
    Boolean add(AuthPermissionBO authPermissionBO);

    /**
     * 修改权限
     *
     * @param authPermissionBO
     * @return
     */
    Boolean update(AuthPermissionBO authPermissionBO);

    /**
     * 删除权限
     *
     * @param authPermissionBO
     * @return
     */
    Boolean delete(AuthPermissionBO authPermissionBO);

    /**
     * 获取用户权限
     * @param userName
     * @return
     */
    List<String> getPermission(String userName);
}
